<template>
	<view>
		<u-parse style="color: #fff;" :content="centet"></u-parse>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				centet:''
			}
		},
		onLoad(e) {
			uni.setNavigationBarTitle({
				title: e.name
			})
			if(e.name=='消息详情'){
				this.mess(e.id)
				return
			}
			if(e.name=='购买协议'){
				this.centet=this.setting.fa_text
			}else{
				this.centet=this.setting.register_text
			}
			
		},
		methods: {
		async	mess(id){
					let res = await this.$http.get('user/get_activitys_one', {
						activity_id:id
					})
					uni.setNavigationBarTitle({
						title:res.data.activity_title
					})
					
					this.centet=res.data.activity_content
			}
		}
	}
</script>

<style>
page {
		background-color: #1E2240;
		padding: 30rpx;
	}
</style>
